<?php

class UploadMediaForm extends sfForm
{
	
	public function configure()
	{
		$this->setWidgets(array(
		'projectName'	=> new sfWidgetFormInput(),
		'file'=> new sfWidgetFormInputFile(),
		));
		
		$this->widgetSchema->setNameFormat('mediaFile[%s]');
		
		$this->setValidators(array(
		'file' => new sfValidatorFile(),
		'projectName' => new sfValidatorString(array('required' => true)),
		));
	}//*/
}

?>
